.class public Lcom/fiberhome/gaea/client/c/c;
.super Ljava/lang/Object;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    const-string/jumbo v0, "1"

    iput-object v0, p0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/gaea/client/c/c;->c:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    const-string/jumbo v0, "80"

    iput-object v0, p0, Lcom/fiberhome/gaea/client/c/c;->e:Ljava/lang/String;

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/c;
    .locals 4

    new-instance v0, Lcom/fiberhome/gaea/client/c/c;

    invoke-direct {v0}, Lcom/fiberhome/gaea/client/c/c;-><init>()V

    invoke-static {p1, p0}, Lcom/fiberhome/gaea/client/c/a/b;->a(Ljava/lang/String;Landroid/content/Context;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v1

    if-nez v1, :cond_1

    const/4 v0, 0x0

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    const-string/jumbo v2, "xpushnotificationstyle"

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    if-eqz v2, :cond_5

    invoke-virtual {v2}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    iget-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    :cond_2
    :goto_1
    const-string/jumbo v2, "home"

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    iget-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_6

    iget-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    const-string/jumbo v3, "sys:apps"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    iget-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    const/16 v3, 0x9

    invoke-virtual {v2, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v3

    iput-object v2, v3, Lcom/fiberhome/gaea/client/c/b;->e:Ljava/lang/String;

    :goto_2
    const-string/jumbo v2, "register"

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    const-string/jumbo v3, "ec"

    invoke-virtual {v2, v3}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {v2}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->c:Ljava/lang/String;

    :cond_3
    const-string/jumbo v2, "newip"

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v2

    if-eqz v2, :cond_4

    invoke-virtual {v2}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    :cond_4
    const-string/jumbo v2, "newport"

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/c/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/c/a/a;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/c/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/fiberhome/gaea/client/c/c;->e:Ljava/lang/String;

    goto/16 :goto_0

    :cond_5
    const-string/jumbo v2, "1"

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    goto :goto_1

    :cond_6
    const-string/jumbo v2, ""

    iput-object v2, v0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    goto :goto_2
.end method


# virtual methods
.method public a()Z
    .locals 3

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string/jumbo v1, "<?xml version=\"1.0\"  encoding=\"UTF-8\" ?>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<setting>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<xpushnotificationstyle>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/gaea/client/c/c;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "</xpushnotificationstyle>\r\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<home>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/gaea/client/c/c;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "</home>\r\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<register>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<ec>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/gaea/client/c/c;->c:Ljava/lang/String;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "</ec>\r\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "</register>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<newip>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "</newip>\r\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "<newport>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/gaea/client/c/c;->e:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "</newport>\r\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "</setting>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v1, "data/sys/setting.xml"

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/fiberhome/gaea/client/d/c;->c(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method
